/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.asset.service.impl;

import lombok.RequiredArgsConstructor;

import org.springframework.stereotype.Service;

import top.continew.admin.asset.mapper.DeviceDiscardMapper;
import top.continew.admin.asset.mapper.DeviceLendMapper;
import top.continew.admin.asset.mapper.DeviceRecordsMapper;
import top.continew.admin.asset.model.entity.*;
import top.continew.starter.extension.crud.service.BaseServiceImpl;
import top.continew.admin.asset.mapper.DeviceTracksMapper;
import top.continew.admin.asset.model.query.DeviceTracksQuery;
import top.continew.admin.asset.model.req.DeviceTracksReq;
import top.continew.admin.asset.model.resp.DeviceTracksDetailResp;
import top.continew.admin.asset.model.resp.DeviceTracksResp;
import top.continew.admin.asset.service.DeviceTracksService;

import java.util.List;

/**
 * 设备履历业务实现
 *
 * @author CharlieYan
 * @since 2025/03/28 15:13
 */
@Service
@RequiredArgsConstructor
public class DeviceTracksServiceImpl extends BaseServiceImpl<DeviceTracksMapper, DeviceTracksDO, DeviceTracksResp, DeviceTracksDetailResp, DeviceTracksQuery, DeviceTracksReq> implements DeviceTracksService {

    private final DeviceRecordsMapper deviceRecordsMapper;

    private final DeviceTracksMapper deviceTracksMapper;

    private final DeviceLendMapper deviceLendMapper;

    private final DeviceDiscardMapper deviceDiscardMapper;

    @Override
    public List<DeviceTracksResp> deviceTracks(Long deviceId) {
        return deviceTracksMapper.selectDeviceTracksByDeviceId(deviceId);
    }

}